//
//  LableLableCell.m
//  geiTA
//
//  Created by 杨元龙 on 14-11-20.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "LableLableCell.h"

@implementation LableLableCell
- (void)dealloc
{
    [_contentLabel release];
    [_nameLablel release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self =[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        self.nameLablel =[[UILabel alloc]initWithFrame:CGRectMake(10, 5, self.frame.size.width/4, self.frame.size.height-10)];
        [_nameLablel setBackgroundColor:[UIColor yellowColor]];
        [self addSubview:_nameLablel];
        
        self.contentLabel = [[UILabel alloc]initWithFrame:CGRectMake(_nameLablel.frame.origin.x +_nameLablel.frame.size.width +40, 10, self.frame.size.width/9 *4, self.frame.size.height-10)];
//        self.contentLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:18];
        [_contentLabel setBackgroundColor:[UIColor yellowColor]];
        
        [self addSubview:_contentLabel];
        
        
    }
    return self;
    
    
}


- (void)layoutSubviews
{
    [super layoutSubviews];
    [_contentLabel setNumberOfLines:0];
    [_contentLabel sizeToFit];
    _contentLabel.lineBreakMode = NSLineBreakByWordWrapping;
    
}




@end
